package com.convict.hello;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.widget.TextView;

public class Result extends Activity {
	
	private static final String RESULT_LOG="RESULT_LOG";

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		Log.i(RESULT_LOG, "two-----create");
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_result);
		
		Intent intent = getIntent();
		double multOne = intent.getDoubleExtra("multiplierOne",0);
		double multTwo = intent.getDoubleExtra("multiplierTwo",0);
		double result=multOne*multTwo;
		TextView tv = (TextView)findViewById(R.id.result);
		tv.setText(result+"");
	}
	@Override
	protected void onDestroy() {
		Log.i(RESULT_LOG, "two-----destroy");
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		// TODO Auto-generated method stub
		Log.i(RESULT_LOG, "two-----pause");
		super.onPause();
	}

	@Override
	protected void onRestart() {
		// TODO Auto-generated method stub
		Log.i(RESULT_LOG, "two-----restart");
		super.onRestart();
	}

	@Override
	protected void onResume() {
		// TODO Auto-generated method stub
		Log.i(RESULT_LOG, "two-----resume");
		super.onResume();
	}

	@Override
	protected void onStart() {
		// TODO Auto-generated method stub
		Log.i(RESULT_LOG, "two-----start");
		super.onStart();
	}

	@Override
	protected void onStop() {
		// TODO Auto-generated method stub
		Log.i(RESULT_LOG, "two-----stop");
		super.onStop();
	}
}
